<template>
  <div class="sdy-test">
    TestB
     <button @click="handler">向数组追加数据</button>
  </div>
</template>

<script setup lang="ts">
  // 我想在b组件控制
  import { listStore } from '@/stores/list_store';

  const $store=listStore()

  const handler=()=>{
    $store.pushApi('啥都有')
  }

</script>

 <style scoped lang="scss">
</style>